package Lab.Five.WallOfClutter;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Lab5WallOfClutterActivity extends Activity implements OnClickListener
{
	// Fields.
	private Button m_bSend, m_bGet;
	private Intent m_intent;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        m_bSend = (Button)findViewById(R.id.sendMess);
        m_bGet = (Button)findViewById(R.id.getMess);
        
        m_bSend.setOnClickListener(this);
        m_bGet.setOnClickListener(this);
    }
	
	public void onClick(View v) 
	{
		if (v.getId() == R.id.sendMess)
		{
			m_intent = new Intent(this, Lab5WallOfClutterWriteActivity.class);
			startActivity(m_intent);
		}
		else if (v.getId() == R.id.getMess)
		{
			m_intent = new Intent(this, Lab5WallOfClutterReadActivity.class);
			startActivity(m_intent);
		}
	}
}